package com.hejx.security.pojo;

import java.util.Date;

public class Resource {
    private Long id;

    private String name;

    private Boolean type;

    private String url;

    private Long parentId;

    private String permission;

    private Boolean available;

    private Date dataUpdateTime;

    private String dataUpdateUser;

    private Date dataCreateTime;

    private String dataCreateUser;

    private Boolean isDelete;

    public Resource(Long id, String name, Boolean type, String url, Long parentId, String permission, Boolean available, Date dataUpdateTime, String dataUpdateUser, Date dataCreateTime, String dataCreateUser, Boolean isDelete) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.url = url;
        this.parentId = parentId;
        this.permission = permission;
        this.available = available;
        this.dataUpdateTime = dataUpdateTime;
        this.dataUpdateUser = dataUpdateUser;
        this.dataCreateTime = dataCreateTime;
        this.dataCreateUser = dataCreateUser;
        this.isDelete = isDelete;
    }

    public Resource() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Boolean getType() {
        return type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission == null ? null : permission.trim();
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public Date getDataUpdateTime() {
        return dataUpdateTime;
    }

    public void setDataUpdateTime(Date dataUpdateTime) {
        this.dataUpdateTime = dataUpdateTime;
    }

    public String getDataUpdateUser() {
        return dataUpdateUser;
    }

    public void setDataUpdateUser(String dataUpdateUser) {
        this.dataUpdateUser = dataUpdateUser == null ? null : dataUpdateUser.trim();
    }

    public Date getDataCreateTime() {
        return dataCreateTime;
    }

    public void setDataCreateTime(Date dataCreateTime) {
        this.dataCreateTime = dataCreateTime;
    }

    public String getDataCreateUser() {
        return dataCreateUser;
    }

    public void setDataCreateUser(String dataCreateUser) {
        this.dataCreateUser = dataCreateUser == null ? null : dataCreateUser.trim();
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }
}